package com.iam.edu.ad.feign;

import com.iam.common.core.constant.ServiceNameConstants;
import com.iam.common.core.result.R;
import com.iam.edu.ad.entity.PromotionSpace;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(contextId = "remoteAdService", value = ServiceNameConstants.AD_SERVICE)
public interface RemoteAdService {

    String GET_ALL_SPACE = "/ad/getAllSpace";

    String SAVE_OR_UPDATE_AD_SPACE = "ad/saveOrUpdate/space";

    String SAVE_OR_UPDATE_AD = "ad/saveOrUpdate";

    String GET_ALL_ADS = "/ad/getAllAds";

    String GET_BY_ID = "/ad/getAdById";

    @GetMapping(GET_ALL_SPACE)
    R<List<PromotionSpace>> getAllSpace();

}
